﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/admin.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CollegeWebsite.Areas.Administrator.Models.FeedBack>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <%--<th>
                FeedBackId
            </th>--%>
            <th>
                FromName
            </th>
            <th>
                FromEmail
            </th>
            <th>
                FeedSubject
            </th>
            <th>
                FeedContent
            </th>
            <th>
                FeedBackRespond
            </th>
            <th>
                FeedBackStatus
            </th>
            <th>
                FeedBackDate
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%--<%= Html.ActionLink("Edit", "Edit", new { id=item.FeedBackId }) %> |--%>
                <%= Html.ActionLink("Details", "Details", new { id=item.FeedBackId })%> |
                <%= Html.ActionLink("Delete", "Delete", new { id=item.FeedBackId })%>
            </td>
            <%--<td>
                <%= Html.Encode(item.FeedBackId) %>
            </td>--%>
            <td>
                <%= Html.Encode(item.FromName) %>
            </td>
            <td>
                <%= Html.Encode(item.FromEmail) %>
            </td>
            <td>
                <%= Html.Encode(item.FeedSubject) %>
            </td>
            <td>
                <%= Html.Encode(item.FeedContent) %>
            </td>
            <td>
                <%= Html.Encode(item.FeedBackRespond) %>
            </td>
            <td>
                <%= Html.Encode(item.FeedBackStatus) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.FeedBackDate)) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="SlideBarRight" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="PageHeadingPlaceHolder" runat="server">
</asp:Content>

